package com.org.devg.monitor.server.model;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@ConfigurationProperties(prefix = "devg.monitor")
public class MonitorServerConfig {

    private String wechatHookUrl;

    private Boolean showStackTraceMsg;

    private Integer clearEsIndexFrom;

    private Integer clearEsIndexSize;

    private List<MonitorMessageProperties> monitorMessageList;

    public String getWechatHookUrl() {
        return wechatHookUrl;
    }

    public void setWechatHookUrl(String wechatHookUrl) {
        this.wechatHookUrl = wechatHookUrl;
    }

    public Boolean getShowStackTraceMsg() {
        return showStackTraceMsg;
    }

    public void setShowStackTraceMsg(Boolean showStackTraceMsg) {
        this.showStackTraceMsg = showStackTraceMsg;
    }

    public List<MonitorMessageProperties> getMonitorMessageList() {
        return monitorMessageList;
    }

    public void setMonitorMessageList(List<MonitorMessageProperties> monitorMessageList) {
        this.monitorMessageList = monitorMessageList;
    }

    public Integer getClearEsIndexFrom() {
        return clearEsIndexFrom;
    }

    public void setClearEsIndexFrom(Integer clearEsIndexFrom) {
        this.clearEsIndexFrom = clearEsIndexFrom;
    }

    public Integer getClearEsIndexSize() {
        return clearEsIndexSize;
    }

    public void setClearEsIndexSize(Integer clearEsIndexSize) {
        this.clearEsIndexSize = clearEsIndexSize;
    }
}
